<?php
/**
 * Note: *
 */
namespace App\Structs;

class StructItem extends Base
{
    public int $id;
    public int $type;
    public int $num;
    public string $des = '';
    public bool $IsDouble = false;
    /*
     * 	Uuid      string `json:"uuid"`
	UuidType  string `json:"uuid_type"`
	Source    int    `json:"source"`
	CreatedAt string `json:"created_at"`
	Os        int    `json:"os"`
	EventType int    `json:"event_type"`
     * */

    public function getNumber(): int
    {
        return $this->num * ($this->IsDouble?2:1);
    }
}
